<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{caractppmsgs['navigation.back']}" action="/jsf/caractpp/listCaractPPs.xhtml"/>
		
			<p:panel header="#{caractppmsgs['caractpp.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{caractppmsgs['caractpp.cpptiers.title']}:*" />
							<h:outputText value="#{CaractPPComponent.caractpp.cppTiers}"/>
						<h:outputText value="#{caractppmsgs['caractpp.cppsexe.title']}:" />
							<h:inputText id="caractpp_cppsexe" value="#{CaractPPComponent.caractpp.cppSexe}" required="false" label="caractpp_cppsexe" />
						<h:outputText value="#{caractppmsgs['caractpp.cppqualite.title']}:" />
							<h:inputText id="caractpp_cppqualite" value="#{CaractPPComponent.caractpp.cppQualite}" required="false" label="caractpp_cppqualite" />
						<h:outputText value="#{caractppmsgs['caractpp.cppnompers.title']}:" />
							<h:inputText id="caractpp_cppnompers" value="#{CaractPPComponent.caractpp.cppNomPers}" required="false" label="caractpp_cppnompers" />
						<h:outputText value="#{caractppmsgs['caractpp.cppprenompers.title']}:" />
							<h:inputText id="caractpp_cppprenompers" value="#{CaractPPComponent.caractpp.cppPrenomPers}" required="false" label="caractpp_cppprenompers" />
						<h:outputText value="#{caractppmsgs['caractpp.cppnomjeunefille.title']}:" />
							<h:inputText id="caractpp_cppnomjeunefille" value="#{CaractPPComponent.caractpp.cppNomJeuneFille}" required="false" label="caractpp_cppnomjeunefille" />
						<h:outputText value="#{caractppmsgs['caractpp.cppdatenaissance.title']}:" />
							<p:calendar id="caractpp_cppdatenaissance" value="#{CaractPPComponent.caractpp.cppDateNaissance}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{caractppmsgs['caractpp.cppcsp.title']}:" />
							<h:inputText id="caractpp_cppcsp" value="#{CaractPPComponent.caractpp.cppCsp}" required="false" label="caractpp_cppcsp" />
						<h:outputText value="#{caractppmsgs['caractpp.cppregimesocial.title']}:" />
							<h:inputText id="caractpp_cppregimesocial" value="#{CaractPPComponent.caractpp.cppRegimeSocial}" required="false" label="caractpp_cppregimesocial" />
						<h:outputText value="#{caractppmsgs['caractpp.cppcodeprofession.title']}:" />
							<h:inputText id="caractpp_cppcodeprofession" value="#{CaractPPComponent.caractpp.cppCodeProfession}" required="false" label="caractpp_cppcodeprofession" />
						<h:outputText value="#{caractppmsgs['caractpp.cppsituationfamille.title']}:" />
							<h:inputText id="caractpp_cppsituationfamille" value="#{CaractPPComponent.caractpp.cppSituationFamille}" required="false" label="caractpp_cppsituationfamille" />
						<h:outputText value="#{caractppmsgs['caractpp.cppnombreenfants.title']}:" />
							<h:inputText id="caractpp_cppnombreenfants" value="#{CaractPPComponent.caractpp.cppNombreEnfants}" required="false" label="caractpp_cppnombreenfants" />
						<h:outputText value="#{caractppmsgs['caractpp.cppnif.title']}:" />
							<h:inputText id="caractpp_cppnif" value="#{CaractPPComponent.caractpp.cppNif}" required="false" label="caractpp_cppnif" />
						<h:outputText value="#{caractppmsgs['caractpp.cppdatesituation.title']}:" />
							<p:calendar id="caractpp_cppdatesituation" value="#{CaractPPComponent.caractpp.cppDateSituation}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{caractppmsgs['caractpp.cppdateetatphysique.title']}:" />
							<p:calendar id="caractpp_cppdateetatphysique" value="#{CaractPPComponent.caractpp.cppDateEtatPhysique}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{caractppmsgs['caractpp.cppetatphysique.title']}:" />
							<h:inputText id="caractpp_cppetatphysique" value="#{CaractPPComponent.caractpp.cppEtatPhysique}" required="false" label="caractpp_cppetatphysique" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{caractppmsgs['navigation.save']}" action="#{CaractPPComponent.saveCaractPP(CaractPPComponent.caractpp)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>